<?php
/*
	监听电商客订单状态变更事件
*/
defined('BY_JYA') or exit('error');
$type=$event['type'];
$order=$event['order'];
if(!$type){
	return;
}
if($type=='complete' && $order['wxapp_id']){
	//完成
	if(strpos($order['api_data'],'iswxshop') !== false){
		$_SESSION['noexi']=1;
		$this->model('wxapp_api')->recieve_delivery($order['id'],true);
	}
}
